<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script type="text/javascript">
function submit(json) {
    $(this).bjuiajax('ajaxDone', json)
    if (json.success == true) { 
        $(this).dialog('closeCurrent');
        $(this).alertmsg('ok', json.msg, {okName:'确定'});
        $(this).navtab('refresh');        
    } else {
        alert('error');
    }    
}
</script>
<div class="bjui-pageContent">
    <form id="addcost" action="<%=request.getContextPath()%>/bi/cost/costAction!add.action" class="pageForm" data-toggle="validate"
        data-callback="submit">
        <table class="table table-condensed table-hover">
            <tbody>
                <tr>
                    <td>
                        <label for="dialog_month" class="control-label x80">核算月份：</label>
                        <input type="text" name="month" id="dialog_month" data-toggle="datepicker" value="" size="16" data-rule="required">
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td>
                        <input type="hidden" name="departmentCode">
                        <label for="dialog_departmentName" class="control-label x80">核算单元：</label>                        
                        <input type="text" name="departmentName" id="dialog_departmentName" size="16" data-rule="required"
                            data-toggle="lookup" 
                            data-url="<%=request.getContextPath()%>/bi/cost/costAction!selectDepartment.action"
                            data-group="" data-width="700"> 
                                            
                    </td>
                    <td>
                        <label for="dialog_Amount" class="control-label x45">金额：</label>
                        <input type="text" name="cost"  id="dialog_Amount" size="16" data-rule="required">
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-close">关闭</button></li>
        <li><button type="submit" class="btn-default">保存</button></li>
    </ul>
</div>